<?php
/**
 * Created by PhpStorm.
 * User: mr_lee
 * Date: 2017/11/3
 * Time: 下午5:34
 */

namespace app\common\validate;


use think\Validate;

class Merchant extends Validate
{
    protected $rule = [
        'merchant'=>'unique:merchant',
        'leibie'=>'require',
        'leibie2'=>'require',
    ];

    protected $message = [
        'merchant.unique'=>'门店名称已存在',
        'leibie.require'=>'请选择门店一级类别',
        'leibie2.require'=>'请选择门店二级类别',
    ];
    protected $scene = [
        'add'=>['merchant','leibie','leibie2'],
        'edit'=>['merchant','leibie','leibie2'],
    ];

}